package com.cucn.ingmall.order.constant;

/**
 * 订单服务的常量
 *
 * @author KouChaoJie
 * @since: 2022/1/21 09:45
 */
public interface OrderConstant {
    /**
     * 提交订单验证的令牌
     */
    public static final String USER_ORDER_TOKEN_PREFIX = "order_token";
    /**
     * 订单自动确认时间
     */
    public static final Integer AUTO_CONFIRM_DAY = 7;
    /**
     * 验证token令牌失败错误码
     */
    Integer CHECK_CODE_ERROR = 1;
    /**
     * 锁定库存失败
     */
    Integer LOCKED_INVENTORY_ERROR = 3;
    /**
     * 验价失败
     */
    Integer VERIFY_PRICE_ERROR = 2;
    /**
     * 提交订单成功
     */
    Integer SUBMIT_ORDER_SUCCESS = 0;
}
